package com.fymxy.question_bank_management.mapper;

import com.fymxy.question_bank_management.pojo.Paper2proKey;
import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface Paper2proMapper {

    int deleteByPrimaryKey(Paper2proKey key);

    @Insert("insert into paper2pro (paper_no,problem_no) values (#{paperNo},#{problemNo})")
    int insert(Paper2proKey record);

    int insertSelective(Paper2proKey record);

    @Select("select problem_no from paper2pro where paper_no = #{paperNo}")
    List<Integer> selectByPaperNo(Integer paperNo);
}